package Summative;

import java.util.ArrayList;
import javax.swing.JComponent;

public class ViewList 
{
	ArrayList <JComponent> views;

	public ViewList()
	{
		views = new ArrayList <JComponent>();
	}

	public void addView(JComponent component)
	{
		this.views.add(component);
	}
	
	public void removeGUI (JComponent view) 
	{
		this.views.remove(view);
	}

	public void updateAllViews()
	{
		for (JComponent view : this.views) 
		{
			//view.updateView();
		}
	}
}
